<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**

 */
final class Method extends Enum
{
    const POST = 'POST';
    const GET='GET';
    const PUT='PUT';
    const DELETE='DELETE';

    const All = [
            self::POST =>'POST',
            self::GET=>'GET',
            self::PUT=>'PUT',
            self::DELETE=>'DELETE',
        ];

    /**
     * @param string $method
     * @return mixed
     */
    public function getMethod($method= ''){
        return self::All[$method];
    }

}
